package com.ztesoft.huangfu.learning.springboot.springbootmongodb.dao;

import com.ztesoft.huangfu.learning.springboot.springbootmongodb.entity.Customer;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Author: huangfu.daohui
 * Date: 2018/5/28
 * Time: 18:46
 * Version: 1.0
 * Description:
 **/
public interface MongoCustomerRepository extends MongoRepository<Customer, String> {

    Customer findByFirstName(String firstName);

    List<Customer> findByLastName(String lastName);

}
